package com.iqik.sc.ns.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class EmailControllerHandler {

    public static String sendCodeBlockHandler(String email, String code, BlockException blockException) {
        System.out.println(">>>>>>>>>>>>>>block handler: send code: [" + code + "] to email [" + email + "]");
        return "false";
    }

    public static String sendCodeFallback(String email, String code) {
        System.out.println("!!!!!!!!!!!!!!Fallback handler send code: [" + code + "] to email [" + email + "]");
        return "false";
    }

    public static String sendCodeBlockHandler(BlockException blockException) {
        return "exp";
    }

    public static String sendCodeFallback() {
        return "exception";
    }

}
